import { Http } from '@/utils/Http.js'

export const CollectApi = {

	/**
	 * 分页
	 * @returns
	 */
	getPage: (param) => {
		return Http.request({
			url: '/app/user/collect/getPage',
			method: 'post',
			data: param
		})
	},

	/**
	 * 添加
	 * @returns
	 */
	create: (param) => {
		return Http.request({
			url: '/app/user/collect/create',
			method: 'post',
			data: param
		})
	},

	/**
	 * 删除
	 * @returns
	 */
	delete: (param) => {
		return Http.request({
			url: '/app/user/collect/delete',
			method: 'post',
			data: param
		})
	},
	/**
	 * 是否已收藏
	 * @returns
	 */
	getIsCollect: (param) => {
		return Http.request({
			url: '/app/user/collect/getIsCollect',
			method: 'post',
			data: param
		})
	}
}
